/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-29 08:59:09
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-29 09:03:05
 */
import java.util.iterator;
import java.util.Set;
import java.util.HashSet;

public class Test01Set {
    public static void main(String[] args) {
        //用迭代器遍历
        //创建一个迭代器
        Iterator<String> iterator = set.iterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }
}